package com.tsmti.lab.controller.system;

import com.tsmti.core.common.annotation.RequiresMethodPermissions;
import com.tsmti.core.common.controller.BaseController;
import com.tsmti.shiro.annotation.RequiresPathPermission;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Package：com.tsmti.lab.controller.system
 * @Class：DruidController
 * @Description： TODO
 * @Author：zcw
 * @Date：Created in 2018/5/28 14:24
 * @Company:
 * @Version：
 * @Modified By:
 */
@Controller
@RequestMapping("/system/druid")
@RequiresPathPermission("sys:druid")
public class DruidController extends BaseController {

    @RequiresMethodPermissions("index")
    @RequestMapping(method = RequestMethod.GET)
    public String index( HttpServletRequest request, HttpServletResponse response) {
        return display("index");
    }
}
